﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace CMS.APP
{
    public class Tag
    {
        #region Fields
        /// <summary>
        /// Tag名称
        /// </summary>
        private string tagName;
        /// <summary>
        /// Tag名称
        /// </summary>
        public string TagName
        {
            get { return tagName; }
            //set { tagName = value; }
        }
        /// <summary>
        /// 数量
        /// </summary>
        private decimal amount;
        /// <summary>
        /// 数量
        /// </summary>
        public decimal Amount
        {
            get { return amount; }
            //set { amount = value; }
        }
        /// <summary>
        /// 最后引用时间
        /// </summary>
        private DateTime lastUpdateTime;
        /// <summary>
        /// 最后引用时间
        /// </summary>
        public DateTime LastUpdateTime
        {
            get { return lastUpdateTime; }
            //set { lastUpdateTime = value; }
        }
        #endregion Fields

        /// <summary>
        /// 引用的新闻
        /// </summary>
        public List<News> ReferenceNews
        {
            get
            {
                throw new System.NotImplementedException();
            }
        }

        /// <summary>
        /// 引用的投票
        /// </summary>
        public List<Vote> ReferenceVote
        {
            get
            {
                throw new System.NotImplementedException();
            }
        }

        /// <summary>
        /// 贴Tag
        /// </summary>
        /// <param name="objectType">对象类型，News或Vote</param>
        /// <param name="objectId">对象Id</param>
        /// <param name="tagArray">Tag数组</param>
        public int MakeTag(TagType objectType, decimal objectId, ArrayList tagArray)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读Tag
        /// </summary>
        /// <param name="tagName">Tag名称</param>
        public Tag ReadTag(string tagName)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读Tag
        /// </summary>
        /// <param name="timeFrom">时间开始</param>
        /// <param name="timeTo">时间结束</param>
        /// <param name="howMany">数量</param>
        public List<Tag> ReadTagsbyTime(DateTime? timeFrom, DateTime? timeTo, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读Tag
        /// </summary>
        /// <param name="amountAtLeast">至少引用数量</param>
        /// <param name="howMany">数量</param>
        public List<Tag> ReadTagsbyAmount(decimal? amountAtLeast, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读Tag
        /// </summary>
        /// <param name="objectType">对象类型，News或Vote</param>
        /// <param name="objectId">对象Id</param>
        public List<Tag> ReadTagsbyObject(TagType objectType, decimal objectId)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 搜索Tag
        /// </summary>
        /// <param name="tagName">Tag名称</param>
        /// <param name="amountAtLeast">至少引用数量</param>
        /// <param name="timeFrom">时间开始</param>
        /// <param name="timeTo">时间结束</param>
        /// <param name="howMany">数量</param>
        public List<Tag> SearchTags(string tagName, decimal? amountAtLeast, DateTime? timeFrom, DateTime? timeTo, int? howMany)
        {
            throw new System.NotImplementedException();
        }
    }
}
